<template>
	<view class="container" >
		<view class="status_bar">
			<view style="margin-left: 4%;" @tap="goBack()"><u-icon name="arrow-leftward" size='24' /></u-icon></view>
			<view style="margin-left: -50upx; font-weight: bold;">关于我们</view>
			<view></view>
		</view>
		<view class="shop-box">
			<view class="con-shop" @tap="gopage()">
				<view style="display: flex;">
					<view style="margin-top: 10upx;">隐私条款</view>
				</view>
				<view style="display: flex;">
					<uni-icons type="arrowright" size="18" color="#eaeaea"></uni-icons>
				</view>
			</view>
			<view class="con-shop" @tap="gopage1()">
				<view style="display: flex;">
					<view style="margin-top: 10upx;">用户协议</view>
				</view>
				<view style="display: flex;">
					<uni-icons type="arrowright" size="18" color="#eaeaea"></uni-icons>
				</view>
			</view>
			<view class="con-shop">
				<view style="display: flex;">
					<view style="margin-top: 10upx;">当前版本</view>
				</view>
				<view style="display: flex;">
					{{appVersion}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userId: uni.getStorageSync('userId') || '',
				startX: 0, // 触摸开始的X坐标
				endX: 0, // 触摸结束的X坐标
				threshold: 50, // 设置滑动多少距离后触发返回
				value2: true,
				appVersion: ''

			}
		},
		onLoad() {
			let systemInfo = uni.getSystemInfoSync();
			let appVersion = systemInfo.version;
			console.log("当前版本号：", appVersion);
		},

		methods: {
			goBack() {
				uni.navigateBack({
					delta: 1
				});
			},
			gopage() {
				this.toPage('/pages/mine/settings/message/message');
			},
			gopage1() {
				this.toPage('/pages/mine/settings/message/message1');
			},
			
			

		}
	}
</script>

<style lang="scss" scoped>
	page {
		overflow: hidden;
	}

	.container {
		width: 100%;
		height: 100%;

	}

	.status_bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-top: 50upx;
	}

	.status_bar,
	.head {
		background-color: #fff;
		height: 160upx;
	}

	.con-box {
		width: 92%;
		margin-left: 4%;
		background-color: #fff;
		margin-top: 20upx;
		border-radius: 20upx;
		padding: 10upx 30upx;
		color: #2e2e2e;
		font-weight: 300;

		.btn {
			padding: 18upx 200upx;
			background: #ccc;
			text-align: center;
			border-radius: 60upx;
			margin-top: 90upx;
			color: #fff;
		}
	}

	.shop-box {
		width: 92%;
		margin-left: 4%;
		background-color: #fff;
		margin-top: 20upx;
		border-radius: 20upx;
		padding: 10upx 30upx;
		box-shadow: 0 0 40upx #d6e7f1; // 左
		box-shadow: 0 0 40upx #d6e7f1; // 右
		color: #2e2e2e;
		font-weight: 300;
		margin-bottom: 200upx;

		image {
			width: 70upx;
			height: 70upx;
			padding: 10upx 28upx 0upx 10upx;

		}

		.con-shop {
			height: 100upx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1upx solid #f7f7f7;

			span {
				padding-right: 10upx;
				color: #b5b5b5;
				font-size: 28upx;
			}

			.image-code {
				width: 42upx;
				height: 42upx;
				padding: 10upx 28upx 0upx 10upx;
			}
		}
	}
</style>